﻿@model List<WI.CandidateManager.Common.Data.Entities.StudyGroup>

@{
    ViewBag.Title = @Resources.Coach.CoachGroupList;
}

<p>@Html.ActionLink(@Resources.Coach.CoachCreateNewGroupButton, "Manage", "Groups", new { @class = "common-btn BlueColor" })</p>

<h2>@Resources.Coach.CoachGroupList</h2>

<table class="bordered">
    <thead>
        <tr>
            <th>@Resources.Coach.CoachEdit</th>
            <th>@Resources.Coach.CoachGroupName</th>
            <th>@Resources.Coach.CoachDescription</th>
            <th>@Resources.Coach.CoachState</th>
            <th>@Resources.Coach.CoachDelete</th>
        </tr>
    </thead>
    @foreach (var group in Model)
    {
        <tr>
            <td class="Center column-detail">@Html.ActionLink(Resources.Coach.CoachEdit, "Manage", "Groups", new { studyGroupId = group.Id }, new { @class = "common-btn BlueColor" })</td>
            <td>@group.GroupName</td>
            <td>@group.Description</td>
            <td>@group.State</td>
            <td class="Center column-detail">@Html.ActionLink(Resources.Coach.CoachDelete, "DeleteGroup", "Groups", new { groupId = group.Id }, new { @class = "common-btn RedColor" })</td>
        </tr>
    }
</table>
